projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cc9fc9
)
There is a %lf in scanf, but not printf. From Fouts.
author
robertl
<robertl>
Mon, 6 Jan 2003 23:58:53 +0000
(23:58 +0000)
committer
robertl
<robertl>
Mon, 6 Jan 2003 23:58:53 +0000
(23:58 +0000)
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index a56a1954c679409cea37e098433227982c27d03b..83c3d65e81bb471fb15ba17321bf50af780b7382 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-95,7
+95,7
@@
printposn(const coord *c, int is_lat)
} else {
if (c->degrees < 0) d = 'W'; else d = 'E';
}
- printf("%
l
f%c ", fabs(c->degrees), d);
+ printf("%f%c ", fabs(c->degrees), d);
}
void
@@
-107,7
+107,7
@@
fprintdms(FILE *file, const coord *c, int is_lat)
} else {
if (c->degrees < 0) d = 'W'; else d = 'E';
}
- fprintf(file, "%c%
l
f\t", d, fabs(c->degrees));
+ fprintf(file, "%c%f\t", d, fabs(c->degrees));
}
void
fatal(const char *fmt, ...)